Convert duration to number? Help.

hello,
i am trying to convert a duration to a number. i have a cell that calculates total minutes from a start and stop time. then i am trying to multiply that number by another number and not have that result expressed as a duration.

cell1: ( x min)
cell 2: (number)
cell 3: (cell1*cell2) expressed as a number, not duration

thank you very much.

ed.

MacBook Pro, Mac OS X (10.6.3)

Posted on May 25, 2010 4:14 PM

Reply
4 replies

Feb 9, 2014 2:42 PM in response to edguz

I think STRIPDURATION always assumes you want the resulting number in terms of "Days". It is the same as DUR2DAYS. In your example, you have minutes, so maybe you want the resulting number in terms of "Minutes"?


For example:


Cell1: 30 min

Cell2: 2

Cell3: =Cell1xCell2 is 60m

=STRIPDURATION(Cell3) is .041666, which means 60 minutes is .04 of 1 day.


If you are expecting the answer to be 60, then:

=DUR2MINUTES(Cell3) is 60.


If you didn't want to use either of these formulas, you could try formatting Cell3 as minutes with Style set to 0 so there are no units showing. I am not sure if that will cause you trouble further down the road with other calculations since 60 is really still a duration and not a number. With the formulas, the 60 is really a number.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Convert duration to number? Help.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.